/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"864669D4-DEA7-42D8-9D44-083544ADC570"}
 */
function cambiarPass(event) {
	var $win = application.createWindow('CAMBIO_PASS',JSWindow.MODAL_DIALOG)
	forms.cambioPass.controller.show($win)
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"10BFB806-9746-47EA-90A2-78F8EC3F6957"}
 */
function onShow(firstShow, event) {
	controller.loadRecords(globals.gUsuarioID)
	databaseManager.setAutoSave(false)
}

/**
 * Handle hide window.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"17442A50-D308-48D9-81F9-350CC48AE7D2"}
 */
function onHide(event) {
	databaseManager.revertEditedRecords()
	databaseManager.setAutoSave(true)
	return true
}
